//
//  BaseShapeView.m
//  QuartzStudy
//
//  Created by longhuihu on 11-6-21.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "BaseShape.h"


@implementation BaseShape


- (void)drawFrame:(CGContextRef)context
{
	CGFloat frameColors[] = {0.5,0.8,0.6,1.0};
	CGContextSetStrokeColor(context, frameColors);
	CGContextStrokeRect(context, self.bounds);
	CGRect innerFrame = self.bounds;
	innerFrame.origin.x += 1;
	innerFrame.origin.y += 1;
	innerFrame.size.width -= 2;
	innerFrame.size.height -= 2;
	CGContextStrokeRect(context, innerFrame);
}


@end
